package com.http;

import java.io.File;

import com.zouqone.smc.common.utils.http.HttpClientUtil;
import com.zouqone.smc.common.utils.http.HttpClientUtil.MultipartForm;

public class Demo {
	public static void main(String[] args) {
		HttpClientUtil httpClient = new HttpClientUtil();
		MultipartForm form = httpClient.new MultipartForm();

		String url = "http://123.57.57.198:8080/smc/static/ckfinder/core/connector/java/connector.java";
	       
		form.setAction(url);
		File file = new File("/tmp/比对工具.txt");
		// 上传uploadDirectory目录下的所有文件
		String name = "file";
		form.addFileField(name, file);

		HttpClientUtil.submit(form);
	}

}